package com.hl.qzzpbackend.model.dto.user;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 用户登录请求类
 * @author helong
 */
@Data
@ApiModel(value = "用户账号登录请求类")
public class UserAccountLoginRequest implements Serializable {

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空")
    @Size(min = 6, max = 20, message = "账号长度在6-20位之间")
    @ApiModelProperty(value = "账号")
    private String account;

    /**
     * 密码
     */
    @NotBlank(message = "密码不能为空")
    @Size(min = 8, max = 16, message = "密码长度在8-16位之间")
    @ApiModelProperty(value = "密码")
    private String password;
}
